package it.gma.torero.operator;

import it.gma.torero.operand.ComparationOperand;

public class LessOperator extends GreaterOperator {

	public LessOperator(ComparationOperand operand1, ComparationOperand operand2) {
		super(operand1, operand2);
		
	}

	@Override
	public boolean evaluate() {
		
		return operand1.compareTo(operand2) < 0;
	}
	
	@Override
	public String toString() {
		return  operand1 + " < " + operand2 ;
	}
	
}
